package com.oasys.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author mis_wu
 * @描述 自定义响应实体
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseResult<T> implements Serializable {
    private Integer code;
    private String msg;
    private T data;

    public ResponseResult(Integer code, String message){
        this.code=code;
        this.msg=message;
    }
    public ResponseResult(int code){
        this(code,null,null);
    }
    public ResponseResult(String msg){
        this(null,msg,null);
    }
}

